<%@page contentType="text/html; charset=utf-8"%>
<%@ include file="../inc/TagLibs.jsp"%>
<c:if test="${record.billType=='IN'}">
	<c:set var="nameStr" value="借入" />
	<c:set var="costName" value="收款" />
</c:if>
<c:if test="${record.billType=='OUT'}">
	<c:set var="nameStr" value="借出" />
	<c:set var="costName" value="付款" />
</c:if>
<c:set var="pageTopTitle" value="资金${nameStr}单作废" />
<c:set var="pageTitle" value="${pageTopTitle}" />
<%@ include file="../inc/Title.jsp"%>
<head>
<link rel="stylesheet" type="text/css" href="/css/base.css" />
<script language="javascript">
	function doCancel(){
		parent.ClosePop();
	}
	function doDisabled(id){
		window.location = "/system/CancelReasonNew.ihtm?id="+id+"&cancel_type=loanBill";
	}
	function doInit(){
	}
</script>
</head>
<body oncontextmenu="return false" onload="doInit();"  class="sheet modal-dialog" style=" padding-top:10px;">
<div class="sheet-main" id="bodyDiv" style="width:860px;">
  <div class="sheet-list" style="width:100%">
    <div class="modal-main search-business">
    	<div style="width:100%;">
		<table border="0" cellspacing="0" cellpadding="0" align="center" class="table-0">
			<tr>
				<td style="width:33%" rowspan="2"></td>
				<td style="width:33%;text-align:center" rowspan="2"><h2>${pageTopTitle}</h2></td>
				<td style="width:34%" class="tr">
					编号：${record.billCode}
				</td>
			</tr>
			<tr>
				<td class="tr">日期：<fmt:formatDate value="${record.loanDate}" pattern="yyyy-MM-dd"/></td>
			</tr>
		</table>
		
		<table border="0" cellspacing="0" cellpadding="0" align="center" class="table-0">
		    <tr>
				<td class="InfoTitleDivider"></td>
			</tr>
		</table>
		
		<table border="0" cellspacing="0" cellpadding="0" align="center" class="table-a2 BillElseInfo">
			<tr>
		      	<th>借款人：</th>
			    <td>${record.rpName}</td>
		      	<th>经办人：</th>
			   	<td >${record.managerName}</td>
		     	<th >部门：</th>
			    <td  width="26%"><commonTag:showSimpleObjectName list="${departmentList}" objectId="${record.departmentId}" /></td>
		    </tr>
		    <tr>
		    	<th>${costName}账户：</th>
		    	<td ><commonTag:showSimpleObjectName list="${bankAccountList}" objectId="${record.bankAccountId}" /></td>
				<th>${costName}金额：</th>
		    	<td >${record.cost}</td>
		    	<th>&nbsp;</th>
		    	<td>&nbsp;</td>
		    </tr>
		    <tr>
		    	<th>摘要：</th>
		    	<td colspan="5">${record.mark}</td>
		    </tr>
		    <tr>
		    	<th>凭证：</th>
		    	<td colspan="5">
		    		<c:if test="${attFile!=null && attFile!=''}">
						<a href="${record.attachFile}" target="_blank">${attFile}</a>
					</c:if>
		    	</td>
		    </tr>
		</table>
		
		<table border="0" cellspacing="0" cellpadding="0" align="center" class="table-0">
		    <tr>
				<td class="InfoTitleDivider"></td>
			</tr>
		</table>
		
		<p class="give">
			<span>开单人：${record.createrName} <c:if test="${record.createTime!=null}"><fmt:formatDate value="${record.createTime}" pattern="yyyy-MM-dd HH:mm"/></c:if></span>
        	<span>审核人：<c:if test="${record.examinerId!=0}">${record.examinerName} <c:if test="${record.examineTime!=null}"><fmt:formatDate value="${record.examineTime}" pattern="yyyy-MM-dd HH:mm"/></c:if></c:if></span>
			<span>单据帐套：${tallySet.title}</span>
		</p>
		</div>
	   </div>
  </div>
	<div class="modal-buttom">
		<input type="button" class="buttom-a" value=" 作 废 " onClick="doDisabled('${record.id}');">
		<input type="button" class="buttom-a" value=" 退 出 " onClick="doCancel();">
	</div>
</div>
</body>
</html>